package com.sinog.biz.service.api;

import com.sinog.core.utilbean.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;

/**
 * @desc http对外接口service
 * @author -
 * @date -
 */
@RestController
public interface DataTransmissionService {

    /**
     * 保存预安置人员 - 整合上面6个接口
     * @param data data
     * @return Result
     */
    @PostMapping("/transmission/api/azbj/savePreArrangedPersonnel")
    Result savePreArrangedPersonnel(@RequestBody String data);

    /**
     * 更新预安置人员
     * @param data data
     * @return Result
     */
    Result updatePreArrangedPersonnel(@RequestBody String data);

    /**
     * 解除社区矫正接口
     * @param data data
     * @return Result
     */
    @PostMapping("/transmission/api/azbj/saveJjData")
    Result saveJjData(@RequestBody String data);

    /**
     * 根据行政区划全名查询各级编码及名称
     * @param fullAreaName fullAreaName
     * @return Map<String,Object>
     */
    @PostMapping("/transmission/api/azbj/getAllArea")
    Map<String,Object> getAllArea(@RequestParam String fullAreaName);

    /**
     * 模糊查询 - 根据行政区划全名查询各级编码及名称
     * @param fullAreaName fullAreaName
     * @return Map
     */
    Map<String,Object> getVagueAllArea(@RequestParam String fullAreaName);
}